import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Switch, Route, Redirect, Link } from 'react-router-dom';
 
//页面
import Home from 'page/home/index.jsx';
import Layout from 'component/Layout/index.jsx';
import './theme.css'

class App extends React.Component{
    render(){
        return (
            <Router>
                <Layout>
                    <Switch>
                        <Route path='/' component={ Home }></Route>
                        <Redirect from='*' to='/'></Redirect>
                    </Switch>
                </Layout>
                
            </Router>
        );
    }
}

ReactDOM.render(
    <App />,
    document.getElementById('app')
);